/**
 * 
 */
package unitTest.bl;

import junit.framework.TestCase;

import vo.BookInfoVO;

import businessLogic.BookController;
import enums.*;

/**
 * @author LiuHao
 *
 */
public class BookControllerTest extends TestCase {
	
	private BookController bookController;

	/**
	 * @throws java.lang.Exception
	 */
	public void setUp() throws Exception {
		bookController = new BookController();
	}

	/**
	 * Test method for {@link businessLogic.BookController#addBook(vo.BookInfoVO)}.
	 */
	public void testAddBook() {
		assertEquals(BLToViewResultMessage.ADD_BOOK_SUCCESS, bookController.addBook(new BookInfoVO()));
	}

	/**
	 * Test method for {@link businessLogic.BookController#deleteBook(int)}.
	 */
	public void testDeleteBook() {
		assertEquals(BLToViewResultMessage.DELETE_BOOK_SUCCESS, bookController.deleteBook(5));
	}

	/**
	 * Test method for {@link businessLogic.BookController#modify(int, vo.BookInfoVO)}.
	 */
	public void testModify() {
		assertEquals(BLToViewResultMessage.MODIFY_BOOK_SUCCESS, bookController.modify(4, new BookInfoVO()));
	}

}
